import $http from 'static/js/http';

export function addCartItem (data) {
  return $http.post('mall/cart/add-item', data);
}

export function getCart (data) {
  return $http.post('mall/cart/get-cart', data);
}

const mall = {
  addCartItem,
  getCart
};

export default mall;
